import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service
//==========================================业主合同查询===========================
const request = {
    //业主合同基本信息查询
    findByIdBasic (id) {
        return httpGet({
            url: '/ownercontract/ownerContract/getEssentialInformationById',
            params: {
                billId: id,
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //业主合同主体信息查询
    getSubjectInformationById (id) {
        return httpGet({
            url: '/ownercontract/ownerContract/getSubjectInformationById',
            params: {
                billId: id,
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //业主合同变更历史查询
    getChangeHistory (id) {
        return httpGet({
            url: '/ownercontract/ownerContract/getChangeHistory',
            params: {
                billId: id,
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //==========================================业主合同变更查询===========================
    //业主合同变更基本信息查询
    findByIdChangeBasic (id) {
        return httpGet({
            url: '/ownercontract/ownerContractChange/getEssentialInformationChangeById',
            params: {
                billId: id,
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //业主合同变更主体信息查询
    getEssentialInformationChangeById (id) {
        return httpGet({
            url: '/ownercontract/ownerContractChange/getEssentialInformationChangeById',
            params: {
                billId: id,
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
}
export default request